package com.syqc.comlib.callback

import android.content.Context
import android.view.View
import android.widget.ImageView
import com.kingja.loadsir.callback.Callback
import com.syqc.comlib.R
import com.syqc.comlib.utils.loadGif

/**
 *@Author Jasper
 *@Time   2020/9/14
 *@Desc   自定义空布局
 */
class EmptyCallback : Callback() {
    override fun onCreateView(): Int {
        return R.layout.layout_empty_view
    }

    override fun onViewCreate(context: Context, view: View) {
        super.onViewCreate(context, view)
        view.findViewById<ImageView>(R.id.ivNoData).loadGif(context,R.mipmap.ic_empty)
    }
    override fun onReloadEvent(context: Context?, view: View?): Boolean {
        return false
    }
}